package com.wufan.day07.exer1;

/**
 * @author SongWufan
 * @date 2021/4/16 15:58
 */
public class CylinderTest {
    public static void main(String[] args) {
        Cylinder cylinder = new Cylinder();
        cylinder.setRadius(2.1);
        cylinder.setLength(3.4);
        double volume = cylinder.findVolume();
        System.out.printf("圆柱的体积："+volume);
        double area = cylinder.findArea();
        System.out.printf("圆柱的表面积："+area);
    }
}
